-- GENERATED SPELL FOR [Dustbelcher Ogre Mage] --


function spell0_2720(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2720', 30346, 1)
end

function spell1_2720(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20822,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2720', 7000, 1)
end

function Sorts_2720(pUnit, Event)
local choix_sorts_2720 = math.random(0, 1)
if choix_sorts_2720 == 0 then
pUnit:RegisterEvent('spell0_2720', 1, 1)
end
if choix_sorts_2720 == 1 then
pUnit:RegisterEvent('spell1_2720', 1, 1)
end
end

function mob2720_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2720', math.random(1500, 3000), 1)
end

function mob2720_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2720_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2720_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2720, 1, 'mob2720_Action')
RegisterUnitEvent(2720, 2, 'mob2720_Leave')
RegisterUnitEvent(2720, 3, 'mob2720_Kill')
RegisterUnitEvent(2720, 4, 'mob2720_Die')
